package com.example.shoporder.feign;

import com.example.shopbean.bean.User;
//import com.example.shoporder.feign.fallback.UserServiceFallBack;
import com.example.shoporder.feign.fallback.factory.UserServiceFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


//@FeignClient(value = "server-user",fallback = UserServiceFallBack.class)
@FeignClient(value = "server-user",fallbackFactory = UserServiceFallBackFactory.class)
public interface UserService {
    @GetMapping(value = "/user/get/{uid}")
    User getUser(@PathVariable("uid") Long uid);
}
